<?php

$sitesettings = M('config');
$restest = $sitesettings -> select();
$set = array();
foreach($restest as $key => $value){
    $set[ $restest[$key]['key'] ] = $value['value'];
}
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="Mosaddek">

    <title>{$test}<?php echo '-'.$set['sitename'] ?></title>
    <meta name="keywords" content="<?php echo $set['keywords']; ?>">
    <meta name="info" content="<?php echo $set['siteinfo']; ?>">
    <!-- Bootstrap core CSS -->
    <link href="__PUBLIC__/Theme/css/bootstrap.min.css" rel="stylesheet">
    <link href="__PUBLIC__/Theme/css/bootstrap-reset.css" rel="stylesheet">
    <!--external css-->
    <link href="__PUBLIC__/Theme/assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <link href="__PUBLIC__/Theme/assets/morris.js-0.4.3/morris.css" rel="stylesheet" />
    <link href="__PUBLIC__/Theme/assets/jquery-easy-pie-chart/jquery.easy-pie-chart.css" rel="stylesheet" type="text/css" media="screen"/>
    <link rel="stylesheet" href="__PUBLIC__/Theme/css/owl.carousel.css" type="text/css">
    <!-- Custom styles for this template -->
    <link href="__PUBLIC__/Theme/css/style.css" rel="stylesheet">
    <link href="__PUBLIC__/Theme/css/style-responsive.css" rel="stylesheet" />
    <!-- <script src="__PUBLIC__/Theme/js/jquery.js"></script> -->
    <script src="__PUBLIC__/Theme/js/jquery-1.8.3.min.js"></script>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Alert/css/dialog.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Alert/css/dialog-alex.css" />
    <script src="__PUBLIC__/Alert/js/modernizr.custom.js"></script>
    <script src="__PUBLIC__/Holder/holder.js"></script>
    <link rel="shortcut icon" href="__PUBLIC__<?php echo $set['icoimg'] ?>">
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 tooltipss and media queries -->
    <!--[if lt IE 9]>
      <script src="js/html5shiv.js"></script>
      <script src="js/respond.min.js"></script>
    <![endif]-->
  </head>


  <body>
        <block name='body'> <!-- 为登录页面准备的块标签 S -->
          <section id="container" class="">
                  <!--顶部 S-->
                  <header class="header white-bg">
                                <div class="sidebar-toggle-box">
                                    <div data-original-title="点击显示/隐藏 左侧菜单" data-placement="right" class="icon-reorder tooltips"></div>
                                </div>
                                <!--logo start-->
                                <a href="#" class="logo">P<span><SUP>6</SUP></span></a>
                                <!--logo end-->

                                <div class="nav notify-row" id="top_menu">
                                            <!--  顶部提示信息 S 暂时隐藏 -->
                                            <ul class="nav top-menu" style="display:none">
                                                    <!-- settings start -->
                                                    <li class="dropdown">
                                                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                                            <i class="icon-tasks"></i>
                                                            <span class="badge bg-success">6</span>
                                                        </a>
                                                        <ul class="dropdown-menu extended tasks-bar">
                                                            <div class="notify-arrow notify-arrow-green"></div>
                                                            <li>
                                                                <p class="green">You have 6 pending tasks</p>
                                                            </li>
                                                            <li>
                                                                <a href="#">
                                                                    <div class="task-info">
                                                                        <div class="desc">Dashboard v1.3</div>
                                                                        <div class="percent">40%</div>
                                                                    </div>
                                                                    <div class="progress progress-striped">
                                                                        <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
                                                                            <span class="sr-only">40% Complete (success)</span>
                                                                        </div>
                                                                    </div>
                                                                </a>
                                                            </li>
                                                            <li>
                                                                <a href="#">
                                                                    <div class="task-info">
                                                                        <div class="desc">Database Update</div>
                                                                        <div class="percent">60%</div>
                                                                    </div>
                                                                    <div class="progress progress-striped">
                                                                        <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
                                                                            <span class="sr-only">60% Complete (warning)</span>
                                                                        </div>
                                                                    </div>
                                                                </a>
                                                            </li>
                                                            <li>
                                                                <a href="#">
                                                                    <div class="task-info">
                                                                        <div class="desc">Iphone Development</div>
                                                                        <div class="percent">87%</div>
                                                                    </div>
                                                                    <div class="progress progress-striped">
                                                                        <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 87%">
                                                                            <span class="sr-only">87% Complete</span>
                                                                        </div>
                                                                    </div>
                                                                </a>
                                                            </li>
                                                            <li>
                                                                <a href="#">
                                                                    <div class="task-info">
                                                                        <div class="desc">Mobile App</div>
                                                                        <div class="percent">33%</div>
                                                                    </div>
                                                                    <div class="progress progress-striped">
                                                                        <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 33%">
                                                                            <span class="sr-only">33% Complete (danger)</span>
                                                                        </div>
                                                                    </div>
                                                                </a>
                                                            </li>
                                                            <li>
                                                                <a href="#">
                                                                    <div class="task-info">
                                                                        <div class="desc">Dashboard v1.3</div>
                                                                        <div class="percent">45%</div>
                                                                    </div>
                                                                    <div class="progress progress-striped active">
                                                                        <div class="progress-bar"  role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%">
                                                                            <span class="sr-only">45% Complete</span>
                                                                        </div>
                                                                    </div>

                                                                </a>
                                                            </li>
                                                            <li class="external">
                                                                <a href="#">See All Tasks</a>
                                                            </li>
                                                        </ul>
                                                    </li>
                                                    <!-- settings end -->
                                                    <!-- inbox dropdown start-->
                                                    <li id="header_inbox_bar" class="dropdown">
                                                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                                            <i class="icon-envelope-alt"></i>
                                                            <span class="badge bg-important">5</span>
                                                        </a>
                                                        <ul class="dropdown-menu extended inbox">
                                                            <div class="notify-arrow notify-arrow-red"></div>
                                                            <li>
                                                                <p class="red">You have 5 new messages</p>
                                                            </li>
                                                            <li>
                                                                <a href="#">
                                                                    <span class="photo"><img data-src="holder.js/35x35/auto/vine" class="img-circle"></span>
                                                                    <span class="subject">
                                                                    <span class="from">Jonathan Smith</span>
                                                                    <span class="time">Just now</span>
                                                                    </span>
                                                                    <span class="message">
                                                                        Hello, this is an example msg.
                                                                    </span>
                                                                </a>
                                                            </li>
                                                            <li>
                                                                <a href="#">
                                                                    <span class="photo"><img data-src="holder.js/35x35/auto/vine" class="img-circle"></span>
                                                                    <span class="subject">
                                                                    <span class="from">Jhon Doe</span>
                                                                    <span class="time">10 mins</span>
                                                                    </span>
                                                                    <span class="message">
                                                                     Hi, Jhon Doe Bhai how are you ?
                                                                    </span>
                                                                </a>
                                                            </li>
                                                            <li>
                                                                <a href="#">
                                                                    <span class="photo"><img data-src="holder.js/35x35/auto/vine" class="img-circle"></span>
                                                                    <span class="subject">
                                                                    <span class="from">Jason Stathum</span>
                                                                    <span class="time">3 hrs</span>
                                                                    </span>
                                                                    <span class="message">
                                                                        This is awesome dashboard.
                                                                    </span>
                                                                </a>
                                                            </li>
                                                            <li>
                                                                <a href="#">
                                                                    <span class="photo"><img data-src="holder.js/35x35/auto/vine" class="img-circle"></span>
                                                                    <span class="subject">
                                                                    <span class="from">Jondi Rose</span>
                                                                    <span class="time">Just now</span>
                                                                    </span>
                                                                    <span class="message">
                                                                        Hello, this is metrolab
                                                                    </span>
                                                                </a>
                                                            </li>
                                                            <li>
                                                                <a href="#">See all messages</a>
                                                            </li>
                                                        </ul>
                                                    </li>
                                                    <!-- inbox dropdown end -->
                                                    <!-- notification dropdown start-->
                                                    <li id="header_notification_bar" class="dropdown">
                                                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">

                                                            <i class="icon-bell-alt"></i>
                                                            <span class="badge bg-warning">7</span>
                                                        </a>
                                                        <ul class="dropdown-menu extended notification">
                                                            <div class="notify-arrow notify-arrow-yellow"></div>
                                                            <li>
                                                                <p class="yellow">You have 7 new notifications</p>
                                                            </li>
                                                            <li>
                                                                <a href="#">
                                                                    <span class="label label-danger"><i class="icon-bolt"></i></span>
                                                                    Server #3 overloaded.
                                                                    <span class="small italic">34 mins</span>
                                                                </a>
                                                            </li>
                                                            <li>
                                                                <a href="#">
                                                                    <span class="label label-warning"><i class="icon-bell"></i></span>
                                                                    Server #10 not respoding.
                                                                    <span class="small italic">1 Hours</span>
                                                                </a>
                                                            </li>
                                                            <li>
                                                                <a href="#">
                                                                    <span class="label label-danger"><i class="icon-bolt"></i></span>
                                                                    Database overloaded 24%.
                                                                    <span class="small italic">4 hrs</span>
                                                                </a>
                                                            </li>
                                                            <li>
                                                                <a href="#">
                                                                    <span class="label label-success"><i class="icon-plus"></i></span>
                                                                    New user registered.
                                                                    <span class="small italic">Just now</span>
                                                                </a>
                                                            </li>
                                                            <li>
                                                                <a href="#">
                                                                    <span class="label label-info"><i class="icon-bullhorn"></i></span>
                                                                    Application error.
                                                                    <span class="small italic">10 mins</span>
                                                                </a>
                                                            </li>
                                                            <li>
                                                                <a href="#">See all notifications</a>
                                                            </li>
                                                        </ul>
                                                    </li>
                                                    <!-- notification dropdown end -->
                                            </ul>
                                            <!--  顶部提示信息 S -->
                                </div>
                                <div class="top-nav ">
                                    <!--搜索框 + 管理员设置 S-->
                                    <ul class="nav pull-right top-menu">
                                            <block name='search'>


                                            </block>
                                            <!-- user login dropdown start-->
                                            <li class="dropdown">
                                                <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                                    <img data-src="holder.js/20x20/auto/vine" class="img-circle"> <!-- 用户/管理员图片 -->
                                                    <span class="username">用户/管理员</span>
                                                    <b class="caret"></b>
                                                </a>
                                                <ul class="dropdown-menu extended logout">
                                                    <div class="log-arrow-up"></div>
                                                    <li><a href="{:U('Admin/Seo/index')}"><i class=" icon-suitcase"></i> 网站设置</a></li>
                                                    <li><a href="{:U('Admin/Index/index')}"><i class="icon-cog"></i> 网站统计</a></li>
                                                    <li><a href="{:U('Admin/Competence/index')}"><i class="icon-bell-alt"></i> 权限管理</a></li>
                                                    <li><a href="{:U('Login/signout')}"><i class="icon-key"></i> 登出</a></li>
                                                </ul>
                                            </li>
                                            <!-- user login dropdown end -->
                                    </ul>
                                    <!--搜索框 + 管理员设置 E-->
                                </div>
                    </header>
                  <!--顶部 E-->

                  <!--左侧导航栏 S-->
                  <aside>
                              <div id="sidebar"  class="nav-collapse ">
                                  <!-- sidebar menu start-->
                                  <ul class="sidebar-menu">

                                      <li class="sub-menu">
                                          <a href="javascript:;" class="">
                                              <i class="icon-dashboard"></i>
                                              <span>网站数据</span>
                                              <span class="arrow"></span>
                                          </a>
                                          <ul class="sub">
                                              <li><a class="" href="{:U('Index/index')}">数据分析</a></li>
                                          </ul>
                                      </li>

                                      <li class="sub-menu">
                                          <a href="javascript:;" class="">
                                              <i class="icon-book"></i>
                                              <span>权限管理</span>
                                              <span class="arrow"></span>
                                          </a>
                                          <ul class="sub">
                                              <li><a class="" href="{:U('Competence/index')}">分组列表</a></li>
                                              <!-- <li><a class="" href="{:U('Competence/edit')}">权限设置</a></li> -->
                                          </ul>
                                      </li>

                                      <li class="sub-menu">
                                          <a href="javascript:;" class="">
                                              <i class="icon-book"></i>
                                              <span>用户管理</span>
                                              <span class="arrow"></span>
                                          </a>
                                          <ul class="sub">
                                              <li><a class="" href="{:U('User/index')}">用户列表</a></li>
                                              <li><a class="" href="{:U('User/add')}">添加用户</a></li>
                                          </ul>
                                      </li>

                                      <li class="sub-menu">
                                          <a href="javascript:;" class="">
                                              <i class="icon-cogs"></i>
                                              <span>信息审核</span>
                                              <span class="arrow"></span>
                                          </a>
                                          <ul class="sub">
                                              <li><a class="" href="{:U('Photo/index')}">照片审核</a></li>
                                              <li><a class="" href="{:U('News/index')}">动态审核</a></li>
                                          </ul>
                                      </li>

                                      <li class="sub-menu">
                                          <a href="javascript:;" class="">
                                              <i class="icon-tasks"></i>
                                              <span>网站设置</span>
                                              <span class="arrow"></span>
                                          </a>
                                          <ul class="sub">
                                              <li><a class="" href="{:U('Seo/index')}">网站设置</a></li>
                                          </ul>
                                      </li>

                                      <li class="sub-menu">
                                          <a href="javascript:;" class="">
                                              <i class="icon-th"></i>
                                              <span>管理员管理</span>
                                              <span class="arrow"></span>
                                          </a>
                                          <ul class="sub">
                                              <li><a class="" href="{:U('Admin/index')}">管理员列表</a></li>
                                              <li><a class="" href="{:U('Admin/add')}">添加管理员</a></li>
                                          </ul>
                                      </li>

                                      <li class="sub-menu">
                                          <a href="javascript:;" class="">
                                              <i class="icon-th"></i>
                                              <span>VIP管理中心</span>
                                              <span class="arrow"></span>
                                          </a>
                                          <ul class="sub">
                                              <li><a class="" href="{:U('Vip/banner')}">VIP banner管理</a></li>
                                              <li><a class="" href="{:U('Vip/show')}">VIP 说明</a></li>
                                          </ul>
                                      </li>

                                      <li class="sub-menu">
                                          <a href="javascript:;" class="">
                                              <i class="icon-th"></i>
                                              <span>网站皮肤</span>
                                              <span class="arrow"></span>
                                          </a>
                                          <ul class="sub">
                                              <li><a class="" href="{:U('Theme/index')}">修改前台样式</a></li>
                                              <!-- <li><a class="" href="{:U('Pay/payinsert')}">添加支付方式</a></li> -->
                                          </ul>
                                      </li>

                                  </ul>
                                  <!-- sidebar menu end-->
                              </div>
                  </aside>
                  <!--左侧导航栏 E-->

                  <!--右侧主体显示 S-->
                  <section id="main-content">
                              <section class="wrapper">
                                            <!-- 需要填充右侧内容 请使用contents块 -->
                                            <block name='contents'></block>
                              </section> <!-- END -->
                  </section>
                  <!--右侧主体显示 E-->

          </section>
        </block>  <!-- 为登录页面准备的块标签 E -->

      <!-- 提示框 S -->
        <div class="alertstr" style="position:relative;z-index:10000">
                <div id="somedialog" class="dialog">
                                <div class="dialog__overlay"></div>
                                <div class="dialog__content">
                                            <h2 class="htmlstr"></h2>
                                            <div>
                                            <button class="action btn btn-default" data-dialog-close>关闭</button>
                                            </div>
                                </div>
                </div>
        </div>
    <!-- 提示框 E -->

    <!-- js placed at the end of the document so the pages load faster -->

    <script src="__PUBLIC__/Theme/js/bootstrap.min.js"></script>
    <script src="__PUBLIC__/Theme/js/jquery.scrollTo.min.js"></script>
    <script src="__PUBLIC__/Theme/js/jquery.nicescroll.js" type="text/javascript"></script>
    <script src="__PUBLIC__/Theme/assets/morris.js-0.4.3/morris.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/Theme/assets/morris.js-0.4.3/raphael-min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/Theme/assets/chart-master/Chart.js"></script>
    <script src="__PUBLIC__/Theme/js/jquery.sparkline.js" type="text/javascript"></script>
    <script src="__PUBLIC__/Theme/assets/jquery-easy-pie-chart/jquery.easy-pie-chart.js"></script>
    <script src="__PUBLIC__/Theme/js/sparkline-chart.js"></script>
    <script src="__PUBLIC__/Theme/js/easy-pie-chart.js"></script>
    <script src="__PUBLIC__/Theme/js/owl.carousel.js" ></script>
    <script src="__PUBLIC__/Theme/js/jquery.customSelect.min.js" ></script>

    <!--common script for all pages-->
    <script src="__PUBLIC__/Theme/js/common-scripts.js"></script>

    <!--script for this page-->

    <!-- ajax返回状态用js -->
    <script src="__PUBLIC__/Alert/js/classie.js"></script>
    <script src="__PUBLIC__/Alert/js/dialogFx.js"></script>

    <!-- 后台模版用js -->
    <script>
                  $(document).ready(function() {
                      $("#owl-demo").owlCarousel({
                          navigation : true,
                          slideSpeed : 300,
                          paginationSpeed : 400,
                          singleItem : true

                      });
                  });

                  $(function(){
                      $('select.styled').customSelect();
                  });
    </script>

    <!-- ajax返回状态  显示提示用 -->
    <script>
                  (function() {
                        var alertstr = document.getElementsByClassName('alertstr')[0];
                        var dlgtrigger = document.querySelector( '[data-dialog]' ),
                        somedialog = document.getElementById( dlgtrigger.getAttribute( 'data-dialog' ) ),
                        dlg = new DialogFx( somedialog );

                        dlgtrigger.addEventListener( 'click', dlg.toggle.bind(dlg) );

                        $('.trigger').click(function(){
                          $.post("{:U('Admin/Login/logindo')}",{pd:pd},function(data){
                            if (data =='yes') {
                                  $('.htmlstr').html('{$yesstr}');
                            }else if(data =='no'){
                                  $('.htmlstr').html('{$nostr}');
                            }
                          });
                        });
                  })();
    </script>

    <!-- 统计用JS -->
    <block name='data'></block>
  </body>
</html>
